package com.hongyun.tms.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 大船规范
 * </p>
 *
 * @author liPeng
 * @since 2024-06-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("TMS_M_SHIP")
@ApiModel(value="TmsMShip对象", description="大船规范")
public class MShip implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId("ID")
    private Long id;

    @ApiModelProperty(value = "中文船名")
    @TableField("SHIP_NAME")
    private String shipName;

    @ApiModelProperty(value = "英文船名")
    @TableField("SHIP_NAME_EN")
    private String shipNameEn;

    @ApiModelProperty(value = "船舶类型代码，字典")
    @TableField("SHIP_KIND_CODE")
    private String shipKindCode;

    @ApiModelProperty(value = "船舶类型名称")
    @TableField("SHIP_KIND_NAME")
    private String shipKindName;

    @ApiModelProperty(value = "船舶国籍代码，字典")
    @TableField("NOTION_CODE")
    private String notionCode;

    @ApiModelProperty(value = "船舶国籍名称")
    @TableField("NATION_NAME")
    private String nationName;

    @ApiModelProperty(value = "IMO")
    @TableField("IMO")
    private String imo;

    @ApiModelProperty(value = "呼号")
    @TableField("CALL_NO")
    private String callNo;

    @ApiModelProperty(value = "MMSI")
    @TableField("MMSI")
    private String mmsi;

    @ApiModelProperty(value = "船长")
    @TableField("SHIP_LENGTH")
    private BigDecimal shipLength;

    @ApiModelProperty(value = "船宽")
    @TableField("SHIP_WIDTH")
    private BigDecimal shipWidth;

    @ApiModelProperty(value = "总吨")
    @TableField("TOTAL_TON")
    private BigDecimal totalTon;

    @ApiModelProperty(value = "净吨")
    @TableField("NET_TON")
    private BigDecimal netTon;

    @ApiModelProperty(value = "载重吨")
    @TableField("DWT")
    private BigDecimal dwt;

    @ApiModelProperty(value = "舱口数")
    @TableField("HATCH_NUM")
    private Integer hatchNum;

    @ApiModelProperty(value = "航速")
    @TableField("SPEED")
    private BigDecimal speed;

    @ApiModelProperty(value = "船上电话")
    @TableField("SHIP_PHONE")
    private String shipPhone;

    @ApiModelProperty(value = "创建人ID")
    @TableField("CREATE_BY")
    private Long createBy;

    @ApiModelProperty(value = "创建人姓名")
    @TableField("CREATE_BY_NAME")
    private String createByName;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改人ID")
    @TableField("UPDATE_BY")
    private Long updateBy;

    @ApiModelProperty(value = "修改人姓名")
    @TableField("UPDATE_BY_NAME")
    private String updateByName;

    @ApiModelProperty(value = "修改时间")
    @TableField("UPDATE_TIME")
    private LocalDateTime updateTime;
}
